package com.unhz.generator.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * @Author: 曹显贵
 * @Description: 排产订单
 * @Date: Created in 下午 6:53 2018/1/23 0023
 * @Modified By:
 */
public class ProductionOrder implements Serializable{

    /** 排产订单id */
    private Integer id;

    /** 订单Id */
    private Integer orderId;

    /** 排产订单号 */
    private String productionNo;

    /** 申请时间 */
    private Date applyTime;

    /**计划交期时间*/
    private Date planTime;

    /**鞋码类型*/
    private Byte sizeType;

    /**是否有效:0.无效 1.有效*/
    private Byte valid;

    /**状态：1.待确认 2.待生产 3.生产中 4.完成*/
    private Byte status;

    /** 实际完成时间 */
    private Date realityTime;

    /** 排产订单信息*/
    private List<ProductionOrderInfo> productionOrderInfoList;

    /**交货订单**/
    private List<DeliveryOrder> deliveryOrder;

    /** 订单表的总量 */
    private List<Contract> contractList;

    public ProductionOrder(Integer id, Integer orderId, String productionNo, Date applyTime, Date planTime, Byte sizeType, Byte valid, Byte status, Date realityTime, List<ProductionOrderInfo> productionOrderInfoList, List<DeliveryOrder> deliveryOrder, List<Contract> contractList) {
        this.id = id;
        this.orderId = orderId;
        this.productionNo = productionNo;
        this.applyTime = applyTime;
        this.planTime = planTime;
        this.sizeType = sizeType;
        this.valid = valid;
        this.status = status;
        this.realityTime = realityTime;
        this.productionOrderInfoList = productionOrderInfoList;
        this.deliveryOrder = deliveryOrder;
        this.contractList = contractList;
    }

    public List<Contract> getContractList() {
        return contractList;
    }

    public void setContractList(List<Contract> contractList) {
        this.contractList = contractList;
    }

    public List<ProductionOrderInfo> getProductionOrderInfoList() {
        return productionOrderInfoList;
    }

    public void setProductionOrderInfoList(List<ProductionOrderInfo> productionOrderInfoList) {
        this.productionOrderInfoList = productionOrderInfoList;
    }

    public ProductionOrder() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getProductionNo() {
        return productionNo;
    }

    public void setProductionNo(String productionNo) {
        this.productionNo = productionNo == null ? null : productionNo.trim();
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    public Byte getSizeType() {
        return sizeType;
    }

    public void setSizeType(Byte sizeType) {
        this.sizeType = sizeType;
    }

    public Byte getValid() {
        return valid;
    }

    public void setValid(Byte valid) {
        this.valid = valid;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getRealityTime() {
        return realityTime;
    }

    public void setRealityTime(Date realityTime) {
        this.realityTime = realityTime;
    }

    public List<DeliveryOrder> getDeliveryOrder() {
        return deliveryOrder;
    }

    public void setDeliveryOrder(List<DeliveryOrder> deliveryOrder) {
        this.deliveryOrder = deliveryOrder;
    }
}